package com.hotel.sampleTool;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.hotel.BL.GenericLogic;

import data.CleaningStatus;

public class CleaningStatusSample extends RequestSampleData {
	public CleaningStatusSample(HttpServletRequest req,HttpServletResponse resp){
		this.req = req;
		this.resp = resp;
	}

	@Override
	public void CreateSample() {
		List<CleaningStatus> status = new GenericLogic(req,resp).GetCleaningStatus(1);
		for(CleaningStatus s : status)
			datastore.put(s.getEntity());
	}

	@Override
	public void CreateSample(int iteration) {
		CreateSample();
	}

}
